import Vue from 'vue'
import VueRouter from 'vue-router'
import Header from '../components/Header'
import Home from '../Views/Home'
import Footer from '../components/Footer'
import Login from '../Views/Login'
import Register from '../Views/Register'
import Search from '../Views//Search'
Vue.use(VueRouter)



const router = new VueRouter({
  routes: [
    { path: '/', redirect: '/home' },
    { path: '/home', component: Home },
    { path: '/login', component: Login },
    { path: '/register', component: Register },
    { path: '/search', component: Search },
  ]
})
export default router